package ${package};

import ${packageBase}.core.jooq.tables.pojos.${className};
import ${packageBase}.core.dto.DTOBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

<#list dataTypes as dataType>import ${dataType};</#list>

/**
 * ${tableComment} DTO 模型
 *
 * @author motorfu
 * @email ffu@maxleap.com
 * @since ${date}
 */
@Data
public class ${className}DTO extends DTOBean {

<#list columnList as column>
  @ApiModelProperty(notes = "${column.column_comment}")
  private ${column.column_className} ${column.column_name};

</#list>
  public static ${className}DTO toDTO(${className} entity) {
    ${className}DTO dto = new ${className}DTO();
  <#list columnList as column>
    <#if column.column_name != 'isDeleted'>
    dto.set${column.column_name3}(entity.get${column.column_name3}());
    </#if>
  </#list>
    return dto;
  }

}
